function loadDataStorage()
{
	var data = localStorage.getItem("data")
	if (data) {
		data = JSON.parse(data)
	}
	else
		data = {}
	return data
}

function saveDataStorage(data)
{
	var serialized = JSON.stringify(data)
	localStorage.setItem("data", serialized)
	console.log('saved')
}